const http = require("http");

const server = http.createServer((req, res) => {
  res.end(`<!DOCTYPE html>
  <html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="/1/2/3" />
  </head>
  <body>
    <h2>前台首页</h2>
  </body>
  </html>`);
});

server.listen(3000, () => {
  console.log("服务已经启动, 端口 3000 监听中....");
});
